
define(["./dom", "./events", "./console"], function(dom, events, console) {
  dom.onDocument("[data-inplace-grid-links] a", function() {
    var zone;
    zone = this.findParent("[data-container-type=zone]");
    if (!zone) {
      console.error("Unable to find containing zone for live update of grid.");
      return false;
    }
    zone.trigger(events.zone.refresh, {
      url: this.attribute("href")
    });
    return false;
  });
  return null;
});
